package com.b511.swpu.cementbackend.entity;


import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 流变匹配 对应表 CM_RHEOLOGICAL_MATCH
public class CM_RheologicalMatch extends BABaseEntity {
    @Id
    @GenericGenerator(name="rheologyMatchGenerator", strategy="uuid")
    @GeneratedValue(generator="rheologyMatchGenerator")
    private String CM_RheologicalMatch_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "FLUIDTYPE", length = 50)
    private String fluidType;

    @Basic
    @Column(name = "OUTDIAMETER")
    private Double outDiameter;

    @Basic
    @Column(name = "INDIAMETER")
    private Double inDiameter;

    @Basic
    @Column(name = "DISPLACEMENT")
    private Double displacement;

    @Basic
    @Column(name = "GRADIENT")
    private Double gradient;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;

}
